package br.com.tcc.systemdx.domain;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.DiscriminatorValue;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToMany;

@Entity
@DiscriminatorValue(AtributoGenerico.Tipo.FATOR_RELEVANTE)
public class AtributoFatorRelevante extends AtributoGenerico {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8740262709418290946L;

	@ManyToMany(
			fetch = FetchType.LAZY,
			mappedBy="atributos"
			)
	private List<ValorFatorRelevante> valores;
	
	@Override
	public String getTipo() {
		return AtributoGenerico.Tipo.FATOR_RELEVANTE;
	}

	public List<ValorFatorRelevante> getValores() {
		return valores;
	}
	
	public void setValores(List<ValorFatorRelevante> valores) {
		this.valores = valores;
	}

}
